package gupao.concurrency.kms;

import gupao.concurrency.utils.Utils;
import lombok.extern.slf4j.Slf4j;

@Slf4j
public class SimpleRequestValidator implements RequestValidator{
    @Override
    public boolean validateRequest(RequestModel request, String rf) {
        if(requestSignValidate(request, rf)){
            request.setId(decryptReqId(request.getParamMap().get("id")));
            return true;
        }
        log.warn("sign validate: false");
        return false;
    }
}
